package de.muc.vanbeek.ba;

import java.util.Collection;

import de.muc.vanbeek.be.CustomerBE;
import de.muc.vanbeek.dao.CustomerDao;

/**
 * A business activity implements business logic and gets called by business facades.
 * 
 * It still should be stateless, the state is supposed to be handled by the business entities.
 */
public class CustomerLoaderBA {
	
	private final CustomerDao mCustomerHsqlDao;
	
	public CustomerLoaderBA(CustomerDao pCustomerHsqlDao) {
		mCustomerHsqlDao = pCustomerHsqlDao;
	}
	
	public Collection<CustomerBE> getAllCustomers() {
		return mCustomerHsqlDao.getAllCustomers();
	}
    
}
